// 云函数入口文件
const cloud = require('wx-server-sdk')

cloud.init()
var db = cloud.database({
  env: "zousonglin1992-n4jsc"
})
// 云函数入口函数
exports.main = async (event, context) => {
  const wxContext = cloud.getWXContext()
  let { urlId } = event;
  const _ = db.command
  var travelData = db.collection("guonei").where({
    id: _.eq(urlId)
  }).get()
  return travelData
}